package com.hyacinth.netty.protocol;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import static com.hyacinth.netty.CommandType.PING;

/**
 * 心跳数据包
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
public class HeartBeatPacket extends Packet {

    private long requestId;

    @Override
    public Byte getCommand() {
        return PING;
    }
}
